// 全局共享数据
import { useState } from 'react'

const useStore = () => {
  const [works, setWorks] = useState<any[]>([])
  // 虽然照片接口和作品集是同一个，但要单独放
  const [photography, setPhotography] = useState<any[]>([])
  return {
    works,
    setWorks,
    photography,
    setPhotography
  }
}

export default useStore
